package com.example.demo.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ZQW
 */
public class Patientcosts extends Model<Patientcosts> {

private static final long serialVersionUID=1L;

    /**
     * ID主键
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    /**
     * 挂号ID
     */
    @TableField("RegistID")
    private Integer RegistID;

    /**
     * 发票ID
     */
    @TableField("InvoiceID")
    private Integer InvoiceID;

    /**
     * 项目ID
     */
    @TableField("ItemID")
    private Integer ItemID;

    /**
     * 项目类型 1-非药品 2-药品
     */
    @TableField("ItemType")
    private Integer ItemType;

    /**
     * 项目名称
     */
    @TableField("Name")
    private String Name;

    /**
     * 项目单价
     */
    @TableField("Price")
    private BigDecimal Price;

    /**
     * 数量
     */
    @TableField("Amount")
    private BigDecimal Amount;

    /**
     * 执行科室ID
     */
    @TableField("DeptID")
    private Integer DeptID;

    /**
     * 开立时间
     */
    @TableField("Createtime")
    private Date Createtime;

    /**
     * 开立人员ID
     */
    @TableField("CreateOperID")
    private Integer CreateOperID;

    /**
     * 收/退费时间
     */
    @TableField("PayTime")
    private Date PayTime;

    /**
     * 收/退费人员ID
     */
    @TableField("RegisterID")
    private Integer RegisterID;

    /**
     * 收费方式
     */
    @TableField("FeeType")
    private Integer FeeType;

    /**
     * 退费对应记录ID
     */
    @TableField("BackID")
    private Integer BackID;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRegistID() {
        return RegistID;
    }

    public void setRegistID(Integer RegistID) {
        this.RegistID = RegistID;
    }

    public Integer getInvoiceID() {
        return InvoiceID;
    }

    public void setInvoiceID(Integer InvoiceID) {
        this.InvoiceID = InvoiceID;
    }

    public Integer getItemID() {
        return ItemID;
    }

    public void setItemID(Integer ItemID) {
        this.ItemID = ItemID;
    }

    public Integer getItemType() {
        return ItemType;
    }

    public void setItemType(Integer ItemType) {
        this.ItemType = ItemType;
    }

    public String getName() {
        return Name;
    }

    public void setName(String Name) {
        this.Name = Name;
    }

    public BigDecimal getPrice() {
        return Price;
    }

    public void setPrice(BigDecimal Price) {
        this.Price = Price;
    }

    public BigDecimal getAmount() {
        return Amount;
    }

    public void setAmount(BigDecimal Amount) {
        this.Amount = Amount;
    }

    public Integer getDeptID() {
        return DeptID;
    }

    public void setDeptID(Integer DeptID) {
        this.DeptID = DeptID;
    }

    public Date getCreatetime() {
        return Createtime;
    }

    public void setCreatetime(Date Createtime) {
        this.Createtime = Createtime;
    }

    public Integer getCreateOperID() {
        return CreateOperID;
    }

    public void setCreateOperID(Integer CreateOperID) {
        this.CreateOperID = CreateOperID;
    }

    public Date getPayTime() {
        return PayTime;
    }

    public void setPayTime(Date PayTime) {
        this.PayTime = PayTime;
    }

    public Integer getRegisterID() {
        return RegisterID;
    }

    public void setRegisterID(Integer RegisterID) {
        this.RegisterID = RegisterID;
    }

    public Integer getFeeType() {
        return FeeType;
    }

    public void setFeeType(Integer FeeType) {
        this.FeeType = FeeType;
    }

    public Integer getBackID() {
        return BackID;
    }

    public void setBackID(Integer BackID) {
        this.BackID = BackID;
    }

    public static final String ID = "ID";

    public static final String REGISTID = "RegistID";

    public static final String INVOICEID = "InvoiceID";

    public static final String ITEMID = "ItemID";

    public static final String ITEMTYPE = "ItemType";

    public static final String NAME = "Name";

    public static final String PRICE = "Price";

    public static final String AMOUNT = "Amount";

    public static final String DEPTID = "DeptID";

    public static final String CREATETIME = "Createtime";

    public static final String CREATEOPERID = "CreateOperID";

    public static final String PAYTIME = "PayTime";

    public static final String REGISTERID = "RegisterID";

    public static final String FEETYPE = "FeeType";

    public static final String BACKID = "BackID";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Patientcosts{" +
        "id=" + id +
        ", RegistID=" + RegistID +
        ", InvoiceID=" + InvoiceID +
        ", ItemID=" + ItemID +
        ", ItemType=" + ItemType +
        ", Name=" + Name +
        ", Price=" + Price +
        ", Amount=" + Amount +
        ", DeptID=" + DeptID +
        ", Createtime=" + Createtime +
        ", CreateOperID=" + CreateOperID +
        ", PayTime=" + PayTime +
        ", RegisterID=" + RegisterID +
        ", FeeType=" + FeeType +
        ", BackID=" + BackID +
        "}";
    }
}
